from fastapi import APIRouter, Form

app6 = APIRouter()

@app6.post('/register')
async def register(
        username:str = Form(max_length=16,min_length=3,regex=r'^[a-zA-Z0-9]+$'),
        password:str = Form(max_length=16,min_length=3,regex=r'^[a-zA-Z0-9]+$'),
):
        print(username)
        print(password)
        return {
            'username': username,
            'password': password,
        }